package com.wingsfrog.travel.service;

import com.wingsfrog.travel.modules.entity.TeamInfo;

/**
 * Created by rankin on 16/3/31.
 */
public interface TeamService {
    void joinOrCreateTeamByTaskId(Integer userId, Integer mainTaskId) throws Exception;
    TeamInfo findTeamById(Integer id) throws Exception;

    TeamInfo findTeamByMainTaskAndUser(Integer mainTaskId, Integer userId) throws Exception;
}
